package com.yingjie.yingjieorder.mapper;


import com.yingjie.yingjieorder.model.Order;
import org.apache.ibatis.annotations.Param;

import java.util.ArrayList;

/**
* @author Administrator
* @description 针对表【order(订单表)】的数据库操作Mapper
* @createDate 2025-03-09 15:15:02
* @Entity com.yingjie.yingjieorder.model.Order
*/
public interface OrderMapper  {

    Integer subimtOrder(Order order);

    ArrayList<Order> placeOrderList(@Param("userId") Integer userId);
    Integer placeOrderListCount(Integer userId);

    Order getOrderDetail(Integer orderId);

    ArrayList<Order> acceptOrderList(Integer userId);
    Integer acceptOrderListCount(Integer userId);

    Integer acceptOrder(Order order);

    Integer finishOrder(Order order);
}




